package com.wteam.PoJo.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author author
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="编辑Address对象", description="编辑收货地址表")
public class UpdateAddressDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull
    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @NotEmpty(message = "收货人姓名必填")
    @ApiModelProperty(value = "收货人姓名",required = true)
    private String name;

    @NotEmpty(message = "手机号必填")
    @ApiModelProperty(value = "手机号",required = true)
    private String telephone;

    @NotEmpty(message = "省必填")
    @ApiModelProperty(value = "省",required = true)
    private String province;

    @NotEmpty(message = "市必填")
    @ApiModelProperty(value = "市",required = true)
    private String city;

    @NotEmpty(message = "详细地址必填")
    @ApiModelProperty(value = "详细地址",required = true)
    private String detail;





}
